package com.taxi.pay.service;

import com.taxi.common.request.OrderRequest;
import com.taxi.pay.remote.ServiceOrderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Ruomeng
 * @Date: 2022/11/24
 * @Description : online-taxi
 * @Version: 1.0
 */
@Service
public class AlipayService {

    @Autowired
    ServiceOrderClient serviceOrderClient;

    /**
     * 支付订单
     * @param orderId
     */
    public void pay(Long orderId){
        OrderRequest orderRequest = new OrderRequest();
        orderRequest.setOrderId(orderId);
        serviceOrderClient.pay(orderRequest);
    }

}
